package com.okex.api.client;

import java.io.Closeable;

import com.okex.api.client.domain.general.DepthLimit;
import com.okex.api.client.domain.market.OkexDepth;
import com.okex.api.client.domain.market.OkexTicker;

/**
 * Okex API data streaming façade, supporting streaming of events through web sockets.
 */
public interface OkexApiWebSocketClient extends Closeable {
	
	

    Closeable onOkSubSpotTicker(String symbol, BinanceApiCallback<OkexTicker[]> callback);

    Closeable onOkSubSpotDepth(String symbol,DepthLimit depthLimit, BinanceApiCallback<OkexDepth[]> callback);
    

    void close();
}
